

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Report</title>         
    </head>
    <body>
        <div class="nav">
	
	    <span class="menuButton"><g:link class="home" controller="person" action="home">Home</g:link></span>
            <span class="menuButton"><g:link class="list" action="list">Report List</g:link></span>
        </div>
        <div class="body">
            <h1>Create Report</h1>
<br />
		<g:if test="${session.user.chosenProject()}">
	  		<h2>Project: ${session.user.chosenProject()}</h2>
		</g:if>
<br />
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${report}">
            <div class="errors">
                <g:renderErrors bean="${report}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post"  enctype="multipart/form-data">
                <div class="dialog">
                    <table>
                        <tbody>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="associatedFile">Associated File:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:report,field:'associatedFile','errors')}">
                                    <input type="file" id="associatedFile" name="associatedFile" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="submitDate">Submit Date:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:report,field:'submitDate','errors')}">
           				<g:datePicker name="submitDate"></g:datePicker>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
